/*
 * @Author: 谢小康 2170673706@qq.com
 * @Date: 2024-01-03 22:44:38
 * @LastEditors: 谢小康 2170673706@qq.com
 * @LastEditTime: 2024-01-12 21:07:41
 * @FilePath: \My-bolg\My_Blog\src\router\routers.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

export default [
    {
        path:"/",
        name:"/",
        redirect: { name: 'Home' },
        meta:{
            routename:"首页",
            isshowheader: true,
            isshowfooter:true
        }
    },
    {
        path:"/home",
        name:"Home",
        component:()=>import("@/views/Home.vue"),
        meta:{
            routename:"首页",
            isshowheader: true,
            isshowfooter:true
        }
    },
    {
        path:"/myinfo",
        name:"Myinfo",
        component:()=>import("@/components/myinfo.vue"),
        meta:{
            routename:"首页",
            isshowheader: true,
            isshowfooter:true
        }
    },
    {
        path:"/article",
        name:"Article",
        component:()=>import("@/views/Article.vue"),
        meta:{
            routename:"文章",
            isshowheader: true,
            isshowfooter:true
        }
    },
    {
        path:"/shuoshuo",
        name:"Shuoshuo",
        component:()=>import("@/views/shuoshuo.vue"),
        meta:{
            routename:"说说",
            isshowheader: true,
            isshowfooter:true
        }
    },{
        path:"/friends",
        name:"Friends",
        component:()=>import("@/views/friends.vue"),
        meta:{
            routename:"友链",
            isshowheader: true,
            isshowfooter:true
        }
    },{
        path:'/imglist',
        name:'Imglist',
        component:()=>import('@/views/imglist.vue'),
        meta:{
            routename:"图片",
            isshowheader: true,
            isshowfooter:true
        }
    },
    {
        path:"/album",
        name:"Album",
        component:()=>import("@/views/album.vue"),
        meta:{
            routename:"相册",
            isshowheader: true,
            isshowfooter:true
        }
    },
    {
        path:"/notes",
        name:"Notes",
        component:()=>import("@/views/Notes.vue"),
        meta:{
            routename:"留言",
            isshowheader: true,
            isshowfooter:true
        }
    },
    {
        path:"/resources",
        name:"Resources",
        component:()=>import("@/views/Resources.vue"),
        meta:{
            routename:"资源",
            isshowheader: true,
            isshowfooter:true
        }
    },
    {
        path:"/login",
        name:"Login",
        component:()=>import("@/components/login.vue"),
        meta:{
            routename:"登录",
            isshowheader: true,
        }
    },
    {
        name: '404',
        path: '/404',
        component:()=>import("../components/404page.vue"),
        meta:{  
            routename:"404",
            isshowheader: false,
            isshowfooter:false

        }
    },
    {
        path:"/:pathMatch(.*)",
        redirect: '/404'
    }
]